package com.xiaohu.myspace.database.entity;
// default package

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * MessageInfo entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "MESSAGE_INFO", catalog = "myspace")
public class MessageInfo extends BaseEntity  {

	private static final long serialVersionUID = 6340239558735611252L;
	// Fields

	private Integer id;
	private String messageContext;
	private String messageTitle;
	private Integer messageType;
	private Date messageDate;
	private Integer messageEditor;
	private String messageUpDown;
	private Integer messageCommentCount;

	// Constructors

	/** default constructor */
	public MessageInfo() {
	}

	/** full constructor */
	public MessageInfo(String messageContext, String messageTitle,
			Integer messageType, Date messageDate, Integer messageEditor,
			String messageUpDown, Integer messageCommentCount) {
		this.messageContext = messageContext;
		this.messageTitle = messageTitle;
		this.messageType = messageType;
		this.messageDate = messageDate;
		this.messageEditor = messageEditor;
		this.messageUpDown = messageUpDown;
		this.messageCommentCount = messageCommentCount;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "message_context", nullable = false, length = 1000)
	public String getMessageContext() {
		return this.messageContext;
	}

	public void setMessageContext(String messageContext) {
		this.messageContext = messageContext;
	}

	@Column(name = "message_title", nullable = false, length = 50)
	public String getMessageTitle() {
		return this.messageTitle;
	}

	public void setMessageTitle(String messageTitle) {
		this.messageTitle = messageTitle;
	}

	@Column(name = "message_type", nullable = false)
	public Integer getMessageType() {
		return this.messageType;
	}

	public void setMessageType(Integer messageType) {
		this.messageType = messageType;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "message_date", nullable = false, length = 0)
	public Date getMessageDate() {
		return this.messageDate;
	}

	public void setMessageDate(Date messageDate) {
		this.messageDate = messageDate;
	}

	@Column(name = "message_editor", nullable = false)
	public Integer getMessageEditor() {
		return this.messageEditor;
	}

	public void setMessageEditor(Integer messageEditor) {
		this.messageEditor = messageEditor;
	}

	@Column(name = "message_up_down", nullable = false, length = 5)
	public String getMessageUpDown() {
		return this.messageUpDown;
	}

	public void setMessageUpDown(String messageUpDown) {
		this.messageUpDown = messageUpDown;
	}

	@Column(name = "message_comment_count", nullable = false)
	public Integer getMessageCommentCount() {
		return this.messageCommentCount;
	}

	public void setMessageCommentCount(Integer messageCommentCount) {
		this.messageCommentCount = messageCommentCount;
	}

}